package com.youkeyi.ddy.cloud.common.api.basic.hr.employee.certificate;

import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.certificate.dto.HrEmployeeCertificateListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.certificate.param.HrEmployeeCertificateCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.certificate.param.HrEmployeeCertificateDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.certificate.param.HrEmployeeCertificateQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.certificate.param.HrEmployeeCertificateUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * HrEmployeeCertificateCloudServiceFallback
 *
 * @author  liuxiawang
 * @Date 2024/2/19 2:32 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/hr/employee/certificate/fallback")
public class HrEmployeeCertificateCloudServiceFallback implements HrEmployeeCertificateCloudService {

    @Override
    public HrEmployeeCertificateListCloudDto query(HrEmployeeCertificateQueryCloudParam param) {
        return new HrEmployeeCertificateListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(HrEmployeeCertificateCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(HrEmployeeCertificateUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(HrEmployeeCertificateDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
